.product {
  height: calc(100vh - 50px - env(safe-area-inset-bottom));

  .product-swipper-container {
    height: 745rpx;
    width: 100vw;
    background-color: #fff;
    position: relative;

    .product-swipper-container-image {
      width: 100%;
      height: 100%;
    }

    .product-swipper-indicator {
      position: absolute;
      background-color: #707373;
      color: #f6f6f6;
      height: 35rpx;
      font-size: 20rpx;
      line-height: 35rpx;
      width: 68rpx;
      display: flex;
      justify-content: center;
      border-radius: 999rpx;
      bottom: 20rpx;
      right: 25rpx;
    }
  }

  .product-header {
    background-color: #fff;
    padding-bottom: 35rpx;

    .product-header-price {
      color: #f63744;
      padding-left: 30rpx;
      display: flex;
      align-items: center;

      .product-header-price-tag {
        background-color: #db463b;
        color: #fff;
        font-size: 20rpx;
        padding: 8rpx 6rpx;
        border-radius: 10rpx;
        margin-right: 10rpx;
      }

      .product-header-price-symbol {
        font-size: 40rpx;
      }

      .product-header-price-value {
        font-size: 40rpx;
      }

      .product-header-original-price {
        display: flex;
        font-size: 25rpx;
        color: #999999;
        text-decoration: line-through;
        margin-left: 10rpx;
      }
    }

    .product-header-seckill-price {
      height: 120rpx;
      display: flex;
      width: 750rpx;
      box-sizing: border-box;
      padding-left: 10rpx;
      overflow: hidden;
      margin-bottom: 7rpx;

      .product-header-seckill-price-left {
        width: 500rpx;
        height: 120rpx;
        border-top-left-radius: 20rpx;
        border-bottom-left-radius: 20rpx;
        background-color: #449af0;
        position: relative;
        overflow: hidden;
        -webkit-clip-path: polygon(100% 0%, 95% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
        clip-path: polygon(100% 0%, 95% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);

        .product-header-seckill-price-icon {
          position: absolute;
          right: 20rpx;
          filter: brightness(120%);
        }

        .product-header-seckill-price-title {
          position: absolute;
          left: 0;
          top: 0;
          font-size: 20rpx;
          padding: 8rpx 20rpx;
          color: #fff;
          background-color: #2a8ef1;
          border-bottom-right-radius: 20rpx;
        }

        .product-header-seckill-price-left-seckill-price {
          position: absolute;
          left: 55rpx;
          bottom: 35rpx;
          color: #fff;
          font-size: 32rpx;
        }

        .product-header-seckill-price-left-discount-price {
          position: absolute;
          color: #fff;
          left: 256rpx;
          bottom: 70rpx;
          text-decoration: line-through;
          font-size: 22rpx;
        }

        .product-header-seckill-price-left-tip {
          color: #fff;
          position: absolute;
          left: 256rpx;
          bottom: 35rpx;
          font-size: 22rpx;
        }
      }

      .product-header-seckill-price-right {
        width: 250rpx;
        height: 120rpx;
        overflow: hidden;
        position: relative;

        .product-header-seckill-price-right-container {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          box-sizing: border-box;
          width: 250rpx;
          height: 120rpx;
          padding-top: 20rpx;

          .product-header-seckill-price-right-text {
            font-size: 17rpx;
            color: #1989fa;
            letter-spacing: 2rpx;
            margin-left: 20rpx;
          }

          .product-header-seckill-price-right-progress-bar {
            width: 180rpx;
            height: 25rpx;
            margin-top: 15rpx;
            background-color: #f0f5ff;
            margin-left: 20rpx;
            border-radius: 13rpx;
            position: relative;

            .product-header-seckill-price-right-progress {
              width: 180rpx;
              height: 25rpx;
              border-radius: 13rpx;
              background: linear-gradient(120deg,
                  #1e88e5 0%,
                  /* 起始深蓝色 */
                  #64b5f6 35%,
                  /* 浅蓝 */
                  #fff59d 65%,
                  /* 浅黄 */
                  #ffc107 100%
                  /* 结束亮黄色 */
                );
            }

            .product-header-seckill-price-right-progress-bar-text {
              position: absolute;
              color: #1989fa;
              font-size: 18rpx;
              right: 10rpx;
              top: -7rpx;
            }
          }
        }
      }



    }

    .product-header-short-dated-price {
      height: 120rpx;
      display: flex;
      width: 720rpx;
      box-sizing: border-box;
      margin: 0 auto;
      overflow: hidden;
      margin-bottom: 7rpx;
      background-color: #f7fafc;
      border-radius: 20rpx;

      .product-header-short-dated-price-left {
        width: 500rpx;
        height: 120rpx;
        border-top-left-radius: 20rpx;
        border-bottom-left-radius: 20rpx;
        background-color: #449af0;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
        -webkit-clip-path: polygon(100% 0%, 95% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
        clip-path: polygon(100% 0%, 95% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);

        .product-header-short-dated-price-icon {
          position: absolute;
          right: 20rpx;
          filter: brightness(120%);
          z-index: 1;
        }

        .product-header-short-dated-price-title {
          font-size: 20rpx;
          padding: 8rpx 20rpx;
          color: #fff;
          background-color: #2a8ef1;
          border-bottom-right-radius: 20rpx;
          position: absolute;
          left: 0;
          top: 0;
        }

        display: flex;

        .product-header-short-dated-final-price {
          margin-left: 30rpx;
          box-sizing: border-box;
          padding-top: 60rpx;
          display: flex;
          font-size: 22rpx;
          color: #fff;
        }

        .product-header-short-dated-original-and-stock {
          margin-left: 160rpx;
          color: #fff;
          overflow: hidden;

          .product-header-short-dated-original-price {
            font-size: 22rpx;
            margin-top: 30rpx;
            text-decoration: line-through;
            position: relative;
            z-index: 999;
          }

          .product-header-short-dated-stock {
            position: relative;
            z-index: 999;
            font-size: 22rpx;
            margin-top: 15rpx;
          }
        }
      }

      .product-header-short-dated-price-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 20rpx;
        width: 220rpx;
        overflow: hidden;
        align-items: center;

        .product-header-short-dated-price-right-tip {
          padding: 10rpx 12rpx;
          color: #fff;
          border-radius: 20rpx;
          background-color: #2a8ef1;
        }
      }
    }

    .product-header-newcomer-exclusive-price {
      height: 120rpx;
      display: flex;
      align-items: center;
      width: 720rpx;
      box-sizing: border-box;
      margin: 0 auto;
      overflow: hidden;
      margin-bottom: 7rpx;
      background-color: #f7fafc;
      border-radius: 20rpx;

      .product-header-short-dated-price-left {
        width: 500rpx;
        height: 120rpx;
        border-top-left-radius: 20rpx;
        border-bottom-left-radius: 20rpx;
        background-color: #449af0;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
        -webkit-clip-path: polygon(100% 0%, 95% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
        clip-path: polygon(100% 0%, 95% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);

        .product-header-short-dated-price-icon {
          position: absolute;
          right: 20rpx;
          filter: brightness(120%);
          z-index: 1;
        }

        .product-header-short-dated-price-title {
          font-size: 20rpx;
          padding: 8rpx 20rpx;
          color: #fff;
          background-color: #2a8ef1;
          border-bottom-right-radius: 20rpx;
          position: absolute;
          left: 0;
          top: 0;
        }

        display: flex;

        .product-header-short-dated-final-price {
          margin-left: 30rpx;
          box-sizing: border-box;
          padding-top: 60rpx;
          display: flex;
          font-size: 22rpx;
          color: #fff;
        }

        .product-header-short-dated-original-and-stock {
          margin-left: 160rpx;
          color: #fff;
          overflow: hidden;

          .product-header-short-dated-original-price {
            font-size: 22rpx;
            margin-top: 30rpx;
            text-decoration: line-through;
            position: relative;
            z-index: 999;
          }

          .product-header-short-dated-stock {
            position: relative;
            z-index: 999;
            font-size: 22rpx;
            margin-top: 15rpx;
          }
        }
      }

      .product-header-short-dated-price-right {
        display: flex;
        flex-direction: column;
        font-size: 20rpx;
        width: 220rpx;
        overflow: hidden;
        align-items: center;

        .product-header-short-dated-price-right-expirationDate {
          color: #2a8ef1;
          margin-top: 24rpx;
        }

        .product-header-short-dated-price-right-tip {
          margin-top: 10rpx;
          padding: 10rpx 12rpx;
          color: #fff;
          border-radius: 20rpx;
          background-color: #2a8ef1;
        }
      }
    }


    .product-header-product-name {
      background-color: #fff;
      font-size: 30rpx;
      padding-left: 30rpx;
      padding-right: 30rpx;
      line-height: 45rpx;
      font-weight: 500;
    }

    .product-header-product-tip {
      margin-top: 15rpx;
      height: 100rpx;
      width: 700rpx;
      background-color: #e2f9fa;
      margin-left: auto;
      margin-right: auto;
      font-size: 25rpx;
      padding: 15rpx;
      padding-left: 20rpx;
      padding-top: 16rpx;
      box-sizing: border-box;
      border-radius: 20rpx;
      color: #04bbd6;
      font-weight: 600rpx;
      display: flex;
      justify-content: space-between;
      align-items: center;


      .product-header-product-tip-image {
        width: 85rpx;
        height: 85rpx;
      }
    }
  }

  .product-description {
    background-color: #fff;
    margin-top: 22rpx;

    .product-description-item {
      display: flex;
      height: 100rpx;
      line-height: 100rpx;
      border-bottom: 1px solid #f0f0f0;

      .product-description-item-title {
        font-size: 23rpx;
        font-weight: bold;
        margin-left: 23rpx;
      }

      .product-description-item-content {
        margin-left: 50rpx;
        font-size: 23rpx;
        font-weight: normal;
      }

      .product-description-item-content-arrow {
        margin-left: auto;
        margin-right: 30rpx;
      }
    }
  }


  .product-detail-image-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20rpx 0;

    .product-detail-image-title-left {
      background: linear-gradient(to right, #f5f5f5, #ccc);
      height: 10rpx;
      width: 150rpx;
      border-top-right-radius: 999rpx;
      border-bottom-right-radius: 999rpx;
    }

    .product-detail-image-title-text {
      margin-left: 15rpx;
      margin-right: 15rpx;
    }

    .product-detail-image-title-right {
      background: linear-gradient(to right, #ccc, #f5f5f5);
      height: 10rpx;
      width: 150rpx;
      border-top-left-radius: 999rpx;
      border-bottom-left-radius: 999rpx;
    }
  }

  .product-detail-image {
    background-color: #fff;
  }

  .price-explanation {
    height: 300rpx;
    background-color: #fff;
    padding: 13rpx;
    font-size: 20rpx;
    color: #666666;
  }
}


.product-pop-up-parameter {
  height: 100%;

  .product-pop-up-parameter-header {
    margin-top: 35rpx;
    text-align: center;
    font-size: 30rpx;
    color: #2e2e2e;
  }

  .product-pop-up-parameter-body {
    margin-top: 60rpx;
    background-color: #fff;
    padding-left: 35rpx;

    .product-pop-up-parameter-body-item {
      display: flex;
      margin-bottom: 35rpx;
      align-items: center;
      font-size: 25rpx;

      .product-pop-up-parameter-body-item-key {
        width: 170rpx;
        color: #666666;
      }

      .product-pop-up-parameter-body-item-value {
        margin-left: 67rpx;
        flex: 1;
        color: #212121;
      }
    }
  }
}

.registration {
  height: 100%;
  overflow: hidden;

  .registration-title {
    margin-top: 35rpx;
    text-align: center;
    font-size: 30rpx;
    color: #2e2e2e;
  }

  .registration-body {
    height: 140rpx;
    width: 685rpx;
    border: 2rpx solid #f1f1f1;
    border-radius: 20rpx;
    margin: 0 auto;
    margin-top: 35rpx;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-left: 26rpx;
    padding-right: 26rpx;

    .registration-body-registration-number {
      font-size: 25rpx;
      margin-bottom: 40rpx;
      margin-left: 20rpx;
      color: #6a6a6a;
    }

    .registration-body-custom-button {
      background-color: #00bfe6;
      font-size: 22rpx;
      color: white;
    }
  }

}

.product-pop-up-buy-now {
  height: 100%;
  overflow: hidden;
  position: relative;

  .product-pop-up-buy-now-header {
    margin-top: 30rpx;
    font-size: 30rpx;
    text-align: center;
  }

  .product-pop-up-buy-now-purchase-address {
    margin-top: 18rpx;
    height: 120rpx;
    background-color: #fff;
    overflow: hidden;
    border-bottom: 5rpx solid #f5f5f5;

    .product-pop-up-buy-now-purchase-address-first-row {
      display: flex;
      font-size: 25rpx;
      font-weight: bolder;
      margin-left: 35rpx;
      margin-top: 20rpx;
      align-items: baseline;

      .product-pop-up-buy-now-purchase-address-first-row-consignee {
        margin-left: 15rpx;
        margin-right: 15rpx;
      }

      .product-pop-up-buy-now-purchase-address-first-row-detailed-address {
        /* 限制文本显示在一行 */
        white-space: nowrap;
        /* 隐藏超出容器的内容 */
        overflow: hidden;
        /* 超出部分显示省略号 */
        text-overflow: ellipsis;
        /* 可选：设置一个合适的宽度，确保13字后能触发省略 */
        max-width: 500rpx;
        /* 根据实际需求调整 */
      }

      .product-pop-up-buy-now-purchase-address-first-row-icon {
        margin-left: auto;
        margin-right: 35rpx;
      }
    }

    .product-pop-up-buy-now-purchase-address-second-row {
      display: flex;
      align-items: center;
      font-size: 25rpx;
      margin-top: 10rpx;

      .product-pop-up-buy-now-purchase-address-second-row-item:first-child {
        margin-left: 80rpx;
      }

      .product-pop-up-buy-now-purchase-address-second-row-item:nth-child(2) {
        margin-left: 10rpx;
      }

      .product-pop-up-buy-now-purchase-address-second-row-item:nth-child(4) {
        color: #00ba54;
        font-weight: bold;
      }

      .product-pop-up-buy-now-purchase-address-second-row-divider {
        color: #d4d7d7;
        margin-left: 10rpx;
        margin-right: 10rpx;
      }

    }
  }

  .product-pop-up-buy-now-purchase-has-not-address {
    display: flex;
    height: 60rpx;
    font-size: 30rpx;
    align-items: center;
    border-bottom: 5rpx solid #f5f5f5;
    padding-left: 35rpx;

    .product-pop-up-buy-now-purchase-has-not-address-text {
      margin-left: 25rpx;
    }

    .product-pop-up-buy-now-purchase-has-not-address-arrow {
      margin-left: auto;
      margin-right: 33rpx;
    }
  }

  .product-pop-up-buy-now-product-sketch {
    width: 100vw;
    height: 160rpx;
    border-bottom: 5rpx solid #f5f5f5;
    display: flex;
    align-items: center;
    padding: 25rpx;
    padding-top: 15rpx;
    padding-bottom: 15rpx;

    .product-pop-up-buy-now-product-option {
      align-self: flex-start;
      margin-left: 15rpx;

      .product-pop-up-buy-now-product-option-price {
        display: flex;
        color: #fa3f35;
        align-items: center;
        margin-top: 10rpx;

        .product-pop-up-buy-now-product-option-price-symbol {
          font-size: 40rpx;
        }

        .product-pop-up-buy-now-product-option-price-value {
          font-size: 40rpx;
        }

        .product-pop-up-buy-now-product-option-original-price-symbol {
          margin-left: 10rpx;
          font-size: 25rpx;
          color: #999;
          text-decoration: line-through;
        }

        .product-pop-up-buy-now-product-option-original-price-value {
          font-size: 25rpx;
          color: #999;
          text-decoration: line-through;
        }

        .product-pop-up-buy-now-product-option-original-price-tag {
          color: #fff;
          background-color: #dd473b;
          margin-left: 15rpx;
          padding: 7rpx 4rpx;
          font-size: 25rpx;
          border-radius: 10rpx;
        }
      }

      .product-pop-up-buy-now-product-option-stepper {
        display: flex;
        align-items: center;
        margin-top: 20rpx;

        .product-pop-up-buy-now-product-option-stepper-input-class {
          color: black;
        }

        .product-pop-up-buy-now-product-option-stepper-tip {
          display: flex;

          .product-pop-up-buy-now-product-option-stepper-tip-image {
            margin-left: 10rpx;
            width: 30rpx;
            height: 30rpx;
          }

          .product-pop-up-buy-now-product-option-stepper-tip-text {
            margin-left: 10rpx;
            font-size: 25rpx;
            color: #1989fa;
          }
        }
      }
    }
  }

  .product-pop-up-buy-now-specification-options {

    .product-pop-up-buy-now-specification-options-header {
      font-size: 28rpx;
      font-weight: bold;
      margin-top: 15rpx;
      margin-left: 35rpx;
    }

    .product-pop-up-buy-now-specification-options-items {
      display: flex;
      flex-wrap: wrap;
      margin-left: 35rpx;
      margin-top: 10rpx;

      .product-pop-up-buy-now-specification-options-item {
        background-color: #f6f6f6;
        padding: 22rpx 27rpx;
        font-size: 20rpx;
        border-radius: 10rpx;
        border: 1px solid #fff;
        margin-right: 15rpx;
        margin-top: 10rpx;
      }

      .product-pop-up-buy-now-specification-options-item-active {
        border: 1px solid #1989fa;
        background-color: rgba(25, 137, 250, 0.1);
      }
    }
  }

  .product-pop-up-buy-now-button-region {
    position: absolute;
    width: 100vw;
    bottom: 0;

    .product-pop-up-buy-now-button {
      display: flex;
      justify-content: center;
      background-color: #1989fa;
      color: white;
      width: 95vw;
      border-radius: 44rpx;
      align-items: baseline;

      .product-pop-up-buy-now-button-text {
        font-size: 30rpx;
      }

      .product-pop-up-buy-now-button-price-symbol {
        font-size: 25rpx;
      }

      .product-pop-up-buy-now-button-price-value {
        font-size: 35rpx;
      }
    }

    /* 点击时的样式 */
    .product-pop-up-buy-now-button-active {
      background-color: #0f6ecd;
      transform: scale(0.98);
      opacity: 0.9;
    }
  }

}

.shipping-cart {
  height: 100%;
  overflow: hidden;
  position: relative;

  .shipping-cart-header {
    margin-top: 30rpx;
    font-size: 30rpx;
    text-align: center;
  }


  .shipping-cart-product-sketch {
    width: 100vw;
    height: 160rpx;
    border-bottom: 5rpx solid #f5f5f5;
    display: flex;
    align-items: center;
    padding: 25rpx;
    padding-top: 15rpx;
    padding-bottom: 15rpx;

    .shipping-cart-product-option {
      align-self: flex-start;
      margin-left: 15rpx;

      .shipping-cart-product-option-price {
        display: flex;
        color: #fa3f35;
        align-items: center;
        margin-top: 10rpx;

        .shipping-cart-product-option-price-symbol {
          font-size: 40rpx;
        }

        .shipping-cart-product-option-price-value {
          font-size: 40rpx;
        }

        .shipping-cart-product-option-original-price-symbol {
          font-size: 25rpx;
          margin-top: 5rpx;
          color: #999;
          margin-left: 10rpx;
          text-decoration: line-through;
        }

        .shipping-cart-product-option-original-price-value {
          font-size: 25rpx;
          margin-top: 5rpx;
          color: #999;
          text-decoration: line-through;
        }

        .shipping-cart-product-option-original-price-tag {
          color: #fff;
          margin-left: 10rpx;
          background-color: #dd473b;
          margin-left: 15rpx;
          padding: 7rpx 4rpx;
          font-size: 25rpx;
          border-radius: 10rpx;
        }
      }

      .shipping-cart-product-option-stepper {
        display: flex;
        align-items: center;
        margin-top: 20rpx;

        .shipping-cart-product-option-stepper-input-class {
          color: black;
        }

        .shipping-cart-product-option-stepper-tip {
          display: flex;

          .shipping-cart-product-option-stepper-tip-image {
            margin-left: 10rpx;
            width: 30rpx;
            height: 30rpx;
          }

          .shipping-cart-product-option-stepper-tip-text {
            margin-left: 10rpx;
            font-size: 25rpx;
            color: #1989fa;
          }
        }
      }
    }
  }

  .shipping-cart-specification-options {

    .shipping-cart-specification-options-header {
      font-size: 28rpx;
      font-weight: bold;
      margin-top: 15rpx;
      margin-left: 35rpx;
    }

    .shipping-cart-specification-options-items {
      display: flex;
      flex-wrap: wrap;
      margin-left: 35rpx;
      margin-top: 10rpx;

      .shipping-cart-specification-options-item {
        background-color: #f6f6f6;
        padding: 22rpx 27rpx;
        font-size: 20rpx;
        border-radius: 10rpx;
        border: 1px solid #fff;
        margin-right: 15rpx;
        margin-top: 10rpx;
      }

      .shipping-cart-specification-options-item-active {
        border: 1px solid #1989fa;
        background-color: rgba(25, 137, 250, 0.1);
      }
    }
  }

  .shipping-cart-button-region {
    position: absolute;
    width: 100vw;
    bottom: 0;

    .shipping-cart-button {
      display: flex;
      justify-content: center;
      background-color: #1989fa;
      color: white;
      width: 95vw;
      border-radius: 44rpx;
      align-items: baseline;

      .shipping-cart-button-text {
        font-size: 33rpx;
      }


    }
  }

}